// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';

Vue.use(ViewUI);

//登录user
import user from './assets/js/userinfo';
Vue.prototype.$user = user;

//axios
import axios from './axios';
Vue.prototype.$axios = axios;

//api地址
import api from './assets/js/api';
Vue.prototype.$api = api;

//Vue全局自定义插件
import plugs from '@/components/plugs';
Vue.use(plugs);

//全局公用方法
import utils from './assets/js/utils';
Vue.prototype.$utils = utils;

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
